<?php

namespace App\Api\Logic\Validate;

class CommonValidate extends BaseValidate
{
    protected $rule = [
        'img'=>'required',
        'phone'=>'required',
    ];

    protected $message = [
        'img.required'=>'请选择上传的文件',
        'phone.required'=>'请输入手机号'
    ];


    protected $scene = [
        'uploadImg'=>'img',
        'smsCode'=>'phone'
    ];
}
